<%-- 
    Document   : taskdataresult
    Created on : Jun 14, 2011, 11:40:05 AM
    Author     : A7med Kotb
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Task Data Page</title>
        <link rel="stylesheet" media="all" type="text/css" href="css/jquery-ui-1.8.6.custom.css" />
        <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-timepicker-addon.js"></script>

        <style>
            .ui-timepicker-div .ui-widget-header{ margin-bottom: 8px; }
            .ui-timepicker-div dl{ text-align: left; }
            .ui-timepicker-div dl dt{ height: 25px; }
            .ui-timepicker-div dl dd{ margin: -25px 10px 10px 65px; }
            .ui-timepicker-div td { font-size: 90%; }
        </style>
    </head>
    <body>
        <script>
            $(function() {
                $( "#startDate" ).datepicker();
            });
            $(function() {
                $('#startTime').timepicker({
                    ampm: false,
                    hourMin: 0,
                    hourMax: 23
                });
            });
        </script>
        <html:form action="/SearchSupplier.do">
            <html:hidden property="scId" value="${scheduledata.getScId()}"/>
        <table>
                    <tr>
                        <td colspan="2" align="center"><h2>Schedule Data</h2></td>
                    </tr>
                    <tr>
                        <td>Schedule Period</td>
                        <td><html:text property="schedule" value="${scheduledata.getSchedule()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Modifier</td>
                        <td><html:text property="modifier" value="${scheduledata.getModifier()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Start Date</td>
                        <td><html:text styleId="startDate" property="startDate" value="${scheduledata.getStartDate()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Start Time</td>
                        <td><html:text styleId="startTime" property="startTime" value="${scheduledata.getStartTime()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Schedule Day</td>
                        <td><html:text property="day" value="${scheduledata.getDay()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Enable</td>
                        <td><html:text property="isenable" value="${scheduledata.getIsenable()}" size="40" readonly="true"></html:text></td>
                    </tr>
                    <tr>
                        <td>Running</td>
                        <td><html:text property="isrunning" value="${scheduledata.getIsrunning()}" size="40" readonly="true"></html:text></td>
                    </tr>
        </table>
                 <html:submit value="Start" property="actionType"></html:submit>
                 <html:submit value="Enable" property="actionType"></html:submit>
                 <html:submit value="Disable" property="actionType"></html:submit>
     </html:form>
    </body>
</html>
